package com.mdc.mansion.core.modules.push.impl;


import com.mdc.mansion.core.modules.push.JPushToClientService;
import com.mdc.mansion.dataaccess.modules.basedata.entity.PushMessage;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;

@Component
public class JPushToClientAliasMesServiceImpl implements JPushToClientService {
    @Override
    public boolean isSupport(PushMessage pushMessage) {
        if(StringUtils.equals(PushMessage.MESSAGE_TYPE.MES.getVal(),pushMessage.getMessageType())
                && StringUtils.isNotBlank(pushMessage.getAlias())){
            return true;
        }
        return false;
    }

    @Override
    public void sendToClient(PushMessage pushMessage) {

    }
}
